<?php 
	$obj_web = get_web_link();
?>
<div class="media">
  <div class="panel-title">
	 <div class="panel-h6">» Liên kết website</div>
	 <div class="panel-nav"></div>
  </div>
  <table>
	 <tbody>
		<tr>
		   <td style="height:40px;padding-left:10px;">
			  <select name="cbo_link_web" id="cbo_link_web" class="QuickLinks" onchange="document.getElementById(&#39;lnkGo&#39;).href = this.value;" style="width:230px;">
				 <option value="0">Liên kết</option>
				 <?php foreach ($obj_web as $web){?>
				 <option value="<?php echo $web['cweblink']?>"><?php echo $web['cwebname']?></option>
				<?php }?> 
			  </select>
		   </td>
		   <td>
			  <a id="lnkGo" href="javacripte:void(0);" target="_blank"><img src="<?php echo base_url().'images'?>/go.png" alt="Search" align="absMiddle" border="0"></a>
		   </td>
		</tr>
	 </tbody>
  </table>
</div>
<script type="text/javascript">
	
	$('#cbo_link_web').change(function() {
		if($("#cbo_link_web").val() != '0')
		  window.open($("#cbo_link_web").val(), "_blank");
	});
</script>